{	Problem: http://codeforces.ru/problemset/problem/94/B
	Verdict: Accepted
}
uses
        SysUtils, Math;

var             
        i,j,k,n,x,y:longint;
        a:array[0..10,0..10] of boolean;
                
begin 
read(n);
for i:=1 to n do begin
        read(x,y);
        a[x][y]:=true;
        a[y][x]:=true;
end;
for i:=1 to 5 do
        for j:=1 to 5 do
                for k:=1 to 5 do
                        if ((a[i][j] and a[i][k] and a[j][k]) or ((not a[i][j]) and (not a[i][k]) 
                                and (not a[j][k]))) and (i<>j) and (j<>k) and (i<>k) then begin
                                        write('WIN');
                                        halt(0);
                                end;
write('FAIL');
end.